﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace MyLibrary.Logger
{
    /// <summary>
    /// 日志事件数据结构体
    /// </summary>
    public struct LoggingEventData
    {
        /// <summary> 日志写入器名称 </summary>
        public string WriterName;
        /// <summary> 日志级别 </summary>
        public LogLevel Level;
        /// <summary> 日志消息 </summary>
        public string Message;
        /// <summary> 线程名称 </summary>
        public int ThreadId;
        /// <summary> 时间戳 </summary>
        public DateTime TimeStamp;
        /// <summary> 调用者信息 </summary>
        public CallerInfo CallerInfo;
        /// <summary> 用户姓名 </summary>
        public string UserName;
        /// <summary> 线程标示描述 </summary>
        public string Identity;
        /// <summary> 异常信息 </summary>
        public string ExceptionString;
        /// <summary> 应用程序域 </summary>
        public string Domain;
        /// <summary> 其他属性信息 </summary>
        public Dictionary<string, string> Properties;
    }
}
